package com.datatest.config;


import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.client.ClientHttpResponse;

import java.io.IOException;
import java.io.InputStream;

/**
 * @Author lxt
 * Created by Jccfc on 2021/11/1.
 */
public class RestTemplateResponseInterceptor implements ClientHttpResponse {

    private ClientHttpResponse response;
    private InputStream body;

    public RestTemplateResponseInterceptor(ClientHttpResponse response, InputStream body) {
        this.response = response;
        this.body = body;
    }

    @Override
    public HttpStatus getStatusCode() throws IOException {
        return null;
    }

    @Override
    public int getRawStatusCode() throws IOException {
        return 0;
    }

    @Override
    public String getStatusText() throws IOException {
        return null;
    }

    @Override
    public void close() {

    }

    @Override
    public InputStream getBody() throws IOException {
        return null;
    }

    @Override
    public HttpHeaders getHeaders() {
        return null;
    }
}
